package drds.common.db.sql_mapping.sql_execute;


import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;
import java.util.Map;

public interface StatementHandler {
    Statement prepareStatement(Connection connection) throws SQLException;

    void closeStatement(Statement statement);

    //
    void parameterize(Statement statement) throws SQLException;

    void parameterizeForBatchInsert(Statement statement, List<Map<String, Object>> parameterObject) throws SQLException;

    //
    int update(Statement statement) throws SQLException;

    List<Map<String, Object>> query(Statement statement) throws SQLException;

}
